﻿/*
 * This software is the confidential and proprietary
 * information of NetBay
 * Such confidential information should not be disclosed
 * NetBay copyright(c) 2010
 */

#region Using
using System.IO;
using NetBay.Core.Log;
using System;
#endregion

namespace Rio.Framework.RioManager
{
    /// <summary>
    /// 
    /// </summary>
    public static class LoggerManager
    {

        #region Enums
        #endregion

        #region Constants
        #endregion

        #region Attributes
        #endregion

        #region Init
        /// <summary>
        /// Initialize the LoggerManager class
        /// </summary>
        /// <param name="P_sDirectory">Configuration file's directory for logger</param>
        /// <param name="P_sFileName">Configuration's name for logger</param>
        public static void Init(string P_sDirectory, string P_sFileName)
        {
            var L_sConfigFullFilePath = Path.Combine(P_sDirectory, P_sFileName);
            LogManager.ConfigFile(L_sConfigFullFilePath);
        }
        #endregion


        #region Functions

        #region Publics
        /// <summary>
        /// Retreive a reference to the logger of Business's component
        /// </summary>
        public static ILogger GetBusinessLogger
        {
            get { return NetBay.Core.Log.LogManager.Instance(); }
        }
        /// <summary>
        /// Retreive a reference to the logger of DataBase's component
        /// </summary>
        public static ILogger GetDataBaseLogger
        {
            get { return NetBay.Core.Log.LogManager.Instance(); }
        }
        /// <summary>
        /// Retreive a reference to the logger of Security's component
        /// </summary>
        public static ILogger GetSecurityLogger
        {
            get { return NetBay.Core.Log.LogManager.Instance(); }
        }
        #endregion

        #region Privates
        #endregion

        #endregion
    }
}
